package com.hqyj.lx.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/*
    试卷管理
* */
public class Exampaper {
    private int eId;//主键
    private String eTitle;//试卷名
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date creatTime;//试卷创建时间
    private int validateTime;//考试时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date validity;//试卷有效期
    private double fulscore;//试卷分数
    private String courseName;//试卷课程名

    public Exampaper() {
    }

    @Override
    public String toString() {
        return "Exampaper{" +
                "eId=" + eId +
                ", eTitle='" + eTitle + '\'' +
                ", creatTime=" + creatTime +
                ", validateTime=" + validateTime +
                ", validity=" + validity +
                ", fulscore=" + fulscore +
                ", courseName='" + courseName + '\'' +
                '}';
    }

    public int geteId() {
        return eId;
    }

    public void seteId(int eId) {
        this.eId = eId;
    }

    public String geteTitle() {
        return eTitle;
    }

    public void seteTitle(String eTitle) {
        this.eTitle = eTitle;
    }

    public Date getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(Date creatTime) {
        this.creatTime = creatTime;
    }

    public int getValidateTime() {
        return validateTime;
    }

    public void setValidateTime(int validateTime) {
        this.validateTime = validateTime;
    }

    public Date getValidity() {
        return validity;
    }

    public void setValidity(Date validity) {
        this.validity = validity;
    }

    public double getFulscore() {
        return fulscore;
    }

    public void setFulscore(double fulscore) {
        this.fulscore = fulscore;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public Exampaper(int eId, String eTitle, Date creatTime, int validateTime, Date validity, double fulscore, String courseName) {
        this.eId = eId;
        this.eTitle = eTitle;
        this.creatTime = creatTime;
        this.validateTime = validateTime;
        this.validity = validity;
        this.fulscore = fulscore;
        this.courseName = courseName;
    }
}
